import request from '@/utils/request';



// 脉诊标定列表
export async function reqPulseCalibrationList(data: any, options?: any): Promise<any> {
  return request('/api/v1/pulseCalibration/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 舌诊标定列表
export async function reqTongueCalibrationList(data: any, options?: any): Promise<any> {
  return request('/api/v1/tongueCalibration/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 诊断术语列表
export async function reqDiagnosisTermList(data: any, options?: any): Promise<any> {
  return request('/api/v1/diagnosisTerm/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 诊断术语列表-分级
export async function reqDiagnosisTermListByGrade(data: any, options?: any): Promise<any> {
  return request('/api/v1/diagnosisTerm/listByGrade', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 病历信息列表(高级问诊)
export async function reqSeniorInquiryList(data: any, options?: any): Promise<any> {
  return request('/api/v1/seniorInquiry/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 病历信息修改(高级问诊)
export async function reqSeniorInquiryUpdate(data: any, options?: any): Promise<any> {
  return request('/api/v1/seniorInquiry/update', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 症状信息列表-分页查询
export async function reqSymptomList(data: any, options?: any): Promise<any> {
  return request('/api/v1/symptom/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 症状信息列表-分级
export async function reqSymptomListByGrade(data: any, options?: any): Promise<any> {
  return request('/api/v1/symptom/listByGrade', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 西药信息列表
export async function reqWesternMedicineList(data: any, options?: any): Promise<any> {
  return request('/api/v1/westernMedicine/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 汤剂信息列表
export async function reqBaseFormulaList(data: any, options?: any): Promise<any> {
  return request('/api/v1/baseFormula/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 汤剂详情信息列表
export async function reqBaseFormulaDetailList(data: any, options?: any): Promise<any> {
  return request('/api/v1/baseFormulaDetail/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 查询所有病因分类信息
export async function reqEtiologyCategoryList(data: any, options?: any): Promise<any> {
  return request('/api/v1/etiologyCategory/listAll', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 查询所有病因信息
export async function reqEtiologyList(data: any, options?: any): Promise<any> {
  return request('/api/v1/etiology/listAll', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 根据诊断术语信息查询病因
export async function reqEtiologyCategoryListByDiagnosis(data: any, options?: any): Promise<any> {
  return request('/api/v1/diagnosisEtiology/listByDiagnosis', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 开药
export async function reqSeniorInquiryPrescriptionMedication(data: any, options?: any): Promise<any> {
  return request('/api/v1/seniorInquiry/prescriptionMedication', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 获取汤济药材信息列表
export async function reqBaseFormulaDetailGetBaseFormulaHerb(data: any, options?: any): Promise<any> {
  return request('/api/v1/baseFormulaDetail/getBaseFormulaHerb', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 中药材信息列表
export async function getTyHerbList(data: any, options?: any): Promise<any> {
  return request('/api/v1/herb/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 添加汤剂
export async function reqBaseFormulaCreate(data: any, options?: any): Promise<any> {
  return request('/api/v1/baseFormula/create', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}




// 常用数据列表
export async function reqAggregationHotDataList(data: any, options?: any): Promise<any> {
  return request('/api/v1/aggregation/hotDataList', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


// 穴位列表
export async function reqBaseBodyAcupointList(data: any, options?: any): Promise<any> {
  return request('/api/v1/baseBodyAcupoint/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}



// 退出登录
export async function outLogin(data: any, options?: any): Promise<any> {
  return request('/api/v1/user/logout', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}
